<#import "/spring.ftl" as spring />
<#assign display=JspTaglibs["/WEB-INF/tlds/displaytag.tld"]/>
<html>
<head>
    <title><@spring.message "memberClub.details"/></title>
</head>
<body>
<h1><@spring.message "memberClub.details"/></h1>

<div>
    <a href="viewAll.htm"><@spring.message "entity.viewAll"/></a>
</div>
<div class="marginTop infoBox">
    <table>
        <tbody>
        <tr>
            <th><@spring.message "entity.name"/>:</th>
            <td>${entity.name}</td>
        </tr>
        <tr>
            <th><@spring.message "address.street"/>:</th>
            <td>${entity.address.street}</td>
        </tr>
        <tr>
            <th><@spring.message "address.streetNumber"/>:</th>
            <td>${entity.address.streetNumber}</td>
        </tr>
        <tr>
            <th><@spring.message "address.postalCode"/>:</th>
            <td>${entity.address.postalCode}</td>
        </tr>
        <tr>
            <th><@spring.message "address.postalAddress"/>:</th>
            <td>${entity.address.postalAddress}</td>
        </tr>
        <tr>
            <th><@spring.message "address.country"/>:</th>
            <td>${entity.address.country.guiDescription!springMacroRequestContext.getMessage("entity.notSet")}</td>
        </tr>
        <tr>
            <th><@spring.message "entity.modificationTime"/>:</th>
            <td>${entity.modificationTime?datetime}</td>
        </tr>
        <tr>
            <th><@spring.message "entity.creationTime"/>:</th>
            <td>${entity.creationTime?datetime}</td>
        </tr>
        </tbody>
    </table>
</div>
<div class="marginTop"></div>
<h2>Players</h2>

<div class="marginTop">
<#assign display=JspTaglibs["/WEB-INF/tlds/displaytag.tld"]/>
<@display.table name="entity.members" id="entity" pagesize=20 class="listingTable">
<@display.column title="First name" property="firstName" sortable=true/>
<@display.column title="Last name" property="lastName" sortable=true/>
<@display.column title="Handicap" property="handicap" sortable=true/>
<@display.column title="&nbsp;" class="listingTableLink"><a href="../player/view.htm?id=${entity.id}">View</a></@display.column>
<@display.column title="&nbsp;" class="listingTableLink"><a href="../player/edit.htm?id=${entity.id}">Edit</a></@display.column>
</@display.table>
</div>
</body>
</html>